home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 25
/
CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso
/
CUCD
/
WWW
/
http
/
www.wirenet.co.uk
/
files
/
Wirenet151.lzx
/
Updates
/
SendEvents
< prev
next >
Wrap
Text File
|
1996-10-30
|
2KB
|
61 lines
/* $VER: SendEvents 1.51 (30.10.96) (c) Neil Bothwick */
/* */
/* Check if there are any outstanding events and if */
/* so send them */
/* Change these to suit your setup */
SystemName = 'Wirenet' /* The name of your Internet system in Thor */
MaxTries = 5 /* Maximum number of retries */
Logging = 0 /* Turn on logging, only use with Thor 2.3 and above */
LogFile = 'UUSpool:Connect.log'
/* Don't change anything below here */
EVE_DOWNLOAD = 4
EVE_UPLOAD = 5
address command
if ~show('p', 'BBSREAD') then do
"run >nil: `GetEnv THOR/THORPath`bin/LoadBBSRead"
"WaitForPort BBSREAD"
end
if ~show('L','rexxdossupport.library') then
call addlib('rexxdossupport.library',0,-30)
CmdStr = GetVar('Thor/ThorPath')||'bin/SendTCP BBSNAME' SystemName 'MAILSERVER $SMTPSERVER NEWSSERVER $NEWSSERVER PUBSCREEN Workbench'
if Logging = 1 then CmdStr = CmdStr 'LOGFILE' LogFile
do Try = 1 to MaxTries
if ActiveEvents() = 0 then leave
CmdStr
end
If ActiveEvents() > 0 then ExitMsg('SendTCP failed')
exit
ActiveEvents:
address BBSREAD
ActiveCount = 0
GETBBSDATA SystemName SystemData
do EventNo=SystemData.FIRSTEVENT to SystemData.LASTEVENT
drop EventData.
drop EventTags.
READBREVENT '"'SystemName'"' eventnr EventNo datastem EventData tagsstem EventTags
EventFlags = c2x(EventData.FLAGS)
if EventFlags = 0 | EventFlags = 8 then return 1
end
address command
return 0
ExitMsg:
parse arg ErrMsg
say(ErrMsg)
exit
return